home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
qwatch
/
qwatch.frm
< prev
next >
Wrap
Text File
|
1995-05-08
|
15KB
|
434 lines
VERSION 2.00
Begin Form QWatch
BackColor = &H00FFFFFF&
Caption = "Queue Watch"
ClientHeight = 3525
ClientLeft = 1470
ClientTop = 1785
ClientWidth = 4770
ForeColor = &H00FF8080&
Height = 4215
Icon = QWATCH.FRX:0000
Left = 1410
LinkMode = 1 'Source
LinkTopic = "Form1"
ScaleHeight = 3525
ScaleWidth = 4770
Top = 1155
Width = 4890
Begin Timer WakeUp
Left = 4320
Top = 3000
End
Begin PictureBox AppIcon
Height = 495
Left = 2985
Picture = QWATCH.FRX:0302
ScaleHeight = 465
ScaleWidth = 465
TabIndex = 14
TabStop = 0 'False
Top = 3000
Visible = 0 'False
Width = 495
End
Begin PictureBox Watch
Height = 495
Left = 3600
Picture = QWATCH.FRX:0604
ScaleHeight = 465
ScaleWidth = 465
TabIndex = 4
Top = 2280
Width = 495
End
Begin PictureBox Queue
Height = 495
Left = 3600
Picture = QWATCH.FRX:0906
ScaleHeight = 465
ScaleWidth = 465
TabIndex = 3
Top = 1200
Width = 495
End
Begin Frame Frame1
BackColor = &H00FFFFFF&
Caption = "Warning Levels"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
ForeColor = &H00FF0000&
Height = 2655
Left = 360
TabIndex = 7
Top = 720
Width = 2535
Begin TextBox RedLevel
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 375
Left = 1080
TabIndex = 2
Text = "30"
Top = 1920
Width = 495
End
Begin PictureBox Red
Height = 495
Left = 360
Picture = QWATCH.FRX:0C08
ScaleHeight = 465
ScaleWidth = 465
TabIndex = 10
TabStop = 0 'False
Top = 1920
Width = 495
End
Begin TextBox YellowLevel
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
ForeColor = &H00C00000&
Height = 375
Left = 1080
TabIndex = 1
Text = "15"
Top = 1200
Width = 495
End
Begin PictureBox Yellow
Height = 495
Left = 360
Picture = QWATCH.FRX:0F0A
ScaleHeight = 465
ScaleWidth = 465
TabIndex = 9
TabStop = 0 'False
Top = 1200
Width = 495
End
Begin PictureBox Green
Height = 495
Left = 360
Picture = QWATCH.FRX:120C
ScaleHeight = 465
ScaleWidth = 465
TabIndex = 8
TabStop = 0 'False
Top = 480
Width = 495
End
Begin Label Label5
Caption = "Jobs"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 255
Left = 1680
TabIndex = 13
Top = 1920
Width = 495
End
Begin Label Label4
Caption = "Jobs"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 255
Left = 1680
TabIndex = 12
Top = 1200
Width = 495
End
Begin Label Label2
BackColor = &H00FFFFFF&
Caption = "0 Jobs"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
ForeColor = &H00FF0000&
Height = 255
Left = 1080
TabIndex = 11
Top = 480
Width = 1335
End
End
Begin ComboBox Server
Height = 300
Left = 1200
Style = 2 'Dropdown List
TabIndex = 0
Top = 240
Width = 3255
End
Begin Label Label1
BackColor = &H00FF0000&
Caption = "Watch"
ForeColor = &H00FFFFFF&
Height = 210
Left = 3570
TabIndex = 5
Top = 2775
Width = 570
End
Begin Label Label6
BackColor = &H00FF0000&
Caption = "Queues"
ForeColor = &H00FFFFFF&
Height = 210
Left = 3510
TabIndex = 15
Top = 1695
Width = 705
End
Begin Label Label3
BackColor = &H00FF0000&
Caption = "&Server"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
ForeColor = &H00FFFFFF&
Height = 255
Left = 360
TabIndex = 6
Top = 240
Width = 735
End
Begin Menu mFile
Caption = "&File"
Index = 1
Begin Menu mExit
Caption = "E&xit"
Index = 2
End
Begin Menu mSeperator2
Caption = "-"
End
Begin Menu mAbout
Caption = "&About..."
End
End
End
Sub Form_Load ()
Dim szServers As String * 160
Dim nEntries As Integer, nTotal As Integer
Dim nResult As Integer, nIndex As Integer, nParse As Integer
'*--------------------------------*
'query network for list of servers
'*--------------------------------*
nResult = NetServerEnum2("", 0, szServers, 160, nEntries, nTotal, &HFFFFFFFF, "")
'*---------------------------------*
'parse results returned in szServers
'*---------------------------------*
nIndex = 0: nParse = 1
While nIndex < nEntries
nStart = nParse
'*-------------------------------*
'